/* DHCP Client (public interface) */

/* Copyright (C) 2011 David Zanetti
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; version 2 of the License.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License along
 *  with this program; if not, write to the Free Software Foundation, Inc.,
 *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */

#define DHCPC_H 

/* initalise state and any timers required */
void dhcpc_init(void); 

/* DHCP ticker, called at 1Hz to decrement timers and take appropriate
   action (ie, retransmit discovery, refresh address, etc */
void dhcpc_tick(void);

/* from the UDP code, receive a DHCP packet and do something useful 
   with it. we only need a reply slot for any replies */
uint8_t dhcpc_process(uint8_t slot);

